//
//  ACEBaseDefine.h
//  ACE
//
//  Created by zhangtao on 2018/8/7.
//  Copyright © 2018年 zt.td. All rights reserved.
//

#ifndef ACEBaseDefine_h
#define ACEBaseDefine_h

#define RGB(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define HEXCOLOR(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]


/** 屏幕宽 */
#define ACEWidth   ([UIScreen mainScreen].bounds.size.width)
/** 屏幕高 */
#define ACEHeight  ([UIScreen mainScreen].bounds.size.height)

#define  isiPhoneX (([[UIScreen mainScreen] bounds].size.height) == 812.f ? 1 : 0)
#define  navHeight (isiPhoneX ? 88 : 64)
//#define  tabBarHeight (isiPhoneX ? 83 : 49)
#define  tabBarHeight (isiPhoneX ? (49 + 34) : 49)
#define  safeBottomMargin (isiPhoneX ? 34.f : 0.f)
#define  statusBarHeight (isiPhoneX ? 44.f : 20.f)
#define onlyNavHeight navHeight-statusBarHeight
#define  LL_NavigationBarHeight  44.f


#define WEAKSELF __weak typeof(self) weakSelf = self


#endif /* ACEBaseDefine_h */
